package com.itheima.sh.controller;

import com.itheima.sh.api.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Version: V1.0
 */
@RestController
public class HelloController {

    @Autowired
    HelloService helloService;


    @GetMapping("hello")
    public String sayHello(String username){
        return helloService.sayHello(username);
    }
}
